{extend name="../public/header" /}
{block name="body"}
<body>
{include file="../public/common" /}
<fieldset class="layui-elem-field site-demo-button" style="padding:10px;">
	<div class="layui-row">
		<!--  -->
		<form id="form1" class="layui-form layui-form-pane" action="{:url('')}">
			<section class="panel panel-padding">
				<div class="layui-form-item">
					<label class="layui-form-label">名称</label>
					<div class="layui-input-inline">
						<input type="text" name="jnname" value="{$info.jnname|default=''}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">介绍</label>
					<div class="layui-input-inline">
						<textarea name="jninfo" placeholder="请输入介绍" class="layui-textarea">{$info.jninfo|default=''}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">等级</label>
					<div class="layui-input-inline">
						<input type="text" name="jnlv" value="{$info.jnlv|default='1'}" class="layui-input">
					</div>
				</div>
				<fieldset class="layui-elem-field">
					<legend>效果</legend>
					<div class="layui-field-box">
						<div class="layui-row">
							<div class="layui-form-item">
								<label class="layui-form-label">攻击</label>
								<div class="layui-input-inline">
									<input type="text" name="jngj" value="{$info.jngj|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">防御</label>
								<div class="layui-input-inline">
									<input type="text" name="jnfy" value="{$info.jnfy|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">暴击</label>
								<div class="layui-input-inline">
									<input type="text" name="jnbj" value="{$info.jnbj|default='0'}" class="layui-input">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">吸血</label>
								<div class="layui-input-inline">
									<input type="text" name="jnxx" value="{$info.jnxx|default='0'}" class="layui-input">
								</div>
							</div>
						</div>
					</div>
				</fieldset>
				<div class="layui-form-item">
					<label class="layui-form-label">兑换道具</label>
					<div class="layui-input-inline">
						<select name="jndj" required lay-verify="required">
							<option value="">请选择</option>
							{volist name='jndj_list' id='vo' key='k'}
							<option value="{$vo.djid}" {if condition="$vo.djid eq $info.jndj"}selected{/if}>{$vo.djname}</option>
							{/volist}
						</select>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">需求数量</label>
					<div class="layui-input-inline">
						<input type="text" name="djcount" value="{$info.djcount|default='1'}" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">价格</label>
					<div class="layui-input-inline">
						<input type="text" name="xiaohao" value="{$info.xiaohao|default='1'}" class="layui-input">
					</div>
				</div>
				<!-- / -->

				<div class="layui-input-block">
					<input type="hidden" name="jnid" type="hidden" value="{$info.jnid|default=''}">
					<button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
					<button type="reset" class="layui-btn layui-btn-primary">重置</button>
				</div>
			</section>
		</form>
		<!--  -->
	</div>
</fieldset>
</body>
{/block}
{block name="script"}
<script>
layui.use(['jquery','form','laydate','upload','element'], function(){
	var $ = layui.jquery
	,laydate = layui.laydate
	,upload = layui.upload
	,element = layui.element
	,form = layui.form;

	form.render();
});
</script>
{/block}